package jast.order.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Jast
 * @description 自定义Feign拦截器
 * @date 2022-02-16 18:22
 */
public class CustomFeignInterceptor implements RequestInterceptor {

    Logger logger = LoggerFactory.getLogger(this.getClass());
    @Override
    public void apply(RequestTemplate requestTemplate) {
        //自定义拦截器
        logger.info("自定义拦截器:{}",requestTemplate.methodMetadata());
    }
}
